home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
getdis1r
/
frmreg.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1999-07-26
|
6KB
|
191 lines
VERSION 5.00
Begin VB.Form frmReg
BorderStyle = 4 'Fixed ToolWindow
Caption = "Registration of <Your Program Name Here>"
ClientHeight = 2292
ClientLeft = 36
ClientTop = 276
ClientWidth = 6960
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2292
ScaleWidth = 6960
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton save
Caption = "Quit + Save"
Enabled = 0 'False
Height = 492
Left = 5760
MousePointer = 10 'Up Arrow
TabIndex = 9
Top = 1680
Width = 1092
End
Begin VB.TextBox Text2
Height = 288
Left = 1200
TabIndex = 3
Top = 480
Width = 5652
End
Begin VB.TextBox Text1
Height = 288
Left = 1200
TabIndex = 2
Top = 120
Width = 5652
End
Begin VB.CommandButton Quit
Caption = "Quit W/O Saving"
Height = 500
Left = 3360
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 0
Top = 1680
Width = 1092
End
Begin VB.CommandButton verify
Caption = "Verify Registration"
Height = 500
Left = 4560
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 5
Top = 1680
Width = 1092
End
Begin VB.CommandButton Command1
Caption = "Thank You"
Enabled = 0 'False
Height = 500
Left = 5760
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 10
Top = 1680
Visible = 0 'False
Width = 1092
End
Begin VB.Label Label4
Caption = "Reg Code #2:"
Height = 252
Left = 120
TabIndex = 7
Top = 516
Width = 1092
End
Begin VB.Label Label3
Caption = "Reg Name #1:"
Height = 252
Left = 120
TabIndex = 6
Top = 156
Width = 1092
End
Begin VB.Label Label2
BackColor = &H80000012&
Caption = $"frmReg.frx":0000
ForeColor = &H000000FF&
Height = 612
Left = 120
TabIndex = 4
Top = 960
Width = 6732
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Enabled = 0 'False
BeginProperty Font
Name = "Arial"
Size = 10.2
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 252
Left = 120
TabIndex = 1
Top = 120
Visible = 0 'False
Width = 6732
End
Begin VB.Label Label5
BackColor = &H00FFFFFF&
Enabled = 0 'False
BeginProperty Font
Name = "Arial"
Size = 10.2
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 252
Left = 120
TabIndex = 8
Top = 480
Visible = 0 'False
Width = 6732
End
Attribute VB_Name = "frmReg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
If GetSetting("<Your Program Name Here>", "Options", "Code1") <> "" Then
Command1.Enabled = True
Command1.Visible = True
save.Visible = False
Quit.Visible = False
verify.Visible = False
Text1.Visible = False
Text2.Visible = False
Label3.Visible = True
Label4.Visible = True
Label1.Visible = True
Label5.Visible = True
Label1.Caption = GetSetting("<Your Program Name Here>", "Options", "Name1")
Label5.Caption = GetSetting("<Your Program Name Here>", "Options", "Code1")
End If
End Sub
Private Sub save_Click()
SaveSetting "<Your Program Name Here>", "Options", "Name1", Label1.Caption
SaveSetting "<Your Program Name Here>", "Options", "Code1", Label5.Caption
MsgBox "Must refresh settings; close Register and re-enter."
End Sub
Private Sub verify_Click()
If Text1.Text = "<Your Register Name Here>" And Text2.Text = "<Your Code Number Here>" Then
Label1.Visible = True
Label1.Caption = "Registered to:<Your Register Name Here>"
Label5.Visible = True
Label5.Caption = "Registration #:<Your Code Number Here>"
save.Enabled = True
save.Visible = True
Text1.Enabled = False
Text1.Visible = False
Text2.Enabled = False
Text2.Visible = False
Label3.Visible = False
Label4.Visible = False
save.Enabled = True
save.Enabled = False
MsgBox "Sorry you have entered a wrong Registration Name and Code."
End If
End Sub
Private Sub Quit_Click()
Unload Me
End Sub